<?php


namespace App\Models;


use Illuminate\Database\Eloquent\Model;

class Logistics extends Model
{
    protected $table = 'sp_order_return_2';
    protected $primaryKey = 'id';
    public $timestamps = false;

    //物流状态
    const EXPRESS_STATUS_SEND = 1;//已发货
    const EXPRESS_STATUS_TRANSIT = 2;//运输中
    const EXPRESS_STATUS_SIGNED = 3;//已签收
    const EXPRESS_STATUS_OTHER = 0;//其他

    //类型
    const EXPRESS_TYPE_SEND = 1;//发货
    const EXPRESS_TYPE_RETURN = 2;//归还退货

    const EXPRESS_CHECK_STATUS = 1;//快递100已签收状态

    const ORDER_DELIVERY_TYPE_EXPRESS = 1;//快递物流
    const ORDER_DELIVERY_TYPE_SELF = 2;//上门自取
    const ORDER_DELIVERY_TYPE_INSTALL = 3;//上门安装

    const DELIVERY_TYPE = [
        self::ORDER_DELIVERY_TYPE_EXPRESS=>'快递物流',
        self::ORDER_DELIVERY_TYPE_SELF=>'上门自取',
        self::ORDER_DELIVERY_TYPE_INSTALL=>'上门安装',
    ];

}
